package one.stand.exception;

import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author Administrator
 */
public class ParamException extends Exception {

    private static final Logger log = LoggerFactory.getLogger(ParamException.class);
    private static final String default_message = "参数缺失。。。。。。";

    public ParamException() {
        log.info("参数缺失。。。。。。");
    }

    public ParamException(String message) {
        super(message);
        log.error(StringUtils.defaultIfBlank(message, default_message));
    }


}
